﻿@model RoadQualityEvalAPI.Models.RoleModel

@{
    //Layout = "~/Views/Shared/_Layout.cshtml";
    Layout = null;
    ViewBag.Title = "Create Role";
}


<br />
<br />
<hgroup class="title">
    <h1>@ViewBag.Title</h1>
</hgroup>
<hr />

<div class="sectionDiv">

    @using (Html.BeginForm())
    {
        
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)

        <fieldset>
            <legend>RoleModel</legend>

            <div class="editor-label">
                @Html.LabelFor(m => m.RoleName)
            </div>
            <div class="editor-field">
                @Html.EditorFor(m => m.RoleName)
                @Html.ValidationMessageFor(m => m.RoleName)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.RoleInfo)
            </div>
            <div class="editor-field">
                @Html.EditorFor(m => m.RoleInfo)
                @Html.ValidationMessageFor(m => m.RoleInfo)
            </div>

            <p>
                <input type="submit" value="Create New Role" />
                <input type="button" onclick="location.href='@Url.Action("Index", "Admin")'" class="roleBack" value="Back to list" />
             </p>

        </fieldset>
        
    }
    
</div>
